import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-04-24
 * Time: 16:22
 */
public class Form {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        for (int i = 1; i <= num; i++) {
            for (int j = 1; j <= i ; j++) {
                int ret = i * j;
                System.out.print(i + "*" + j + "=" + ret + " ");
            }
            System.out.println("");
        }
    }
}
